home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Apple II Sample Code / APW.SC / SC16Aware / Aware.rez < prev    next >
Encoding:
Text File  |  1990-06-24  |  6.6 KB  |  350 lines  |  [TEXT/pdos]

  1. /*
  2.     Aware.r -- Version 3.0 
  3.     
  4.     Developer Technical Support Apple II Sample Code
  5.  
  6.     Copyright (c) 1990 by Apple Computer, Inc.
  7.     All Rights Reserved.
  8.  
  9.     This file contains the definitions of the resources used by the
  10.     network aware sample application.  Since this program runs
  11.     under System Software 5.0, it makes heavy use of resources.
  12.     
  13.     Note that the use of resources makes it easy to change things
  14.     such as menu titles and item names without having to change
  15.     the program at all.
  16. */
  17.  
  18.  
  19. /* Include the definition of standard Apple IIGS resource types */
  20. #include "types.rez"
  21.  
  22.  
  23.  
  24. /*
  25.     Define the contents of the About box.  Remember, it is a string
  26.     passed to AlertWindow
  27. */
  28. resource rAlertString (1) {
  29.  "0\$19\$00\$A0\$00\$AA\$00\$E0\$01"        /* Custom window (19,160,170,480) */
  30.  "\$00@"                                    /* No icon, "@" is separator */
  31.  TBCenterJust
  32.  TBForeColor TBColor1                       /* draw title in red */
  33.  "Aware 3.0"
  34.  TBForeColor TBColor0                       /* back to black */
  35.  TBEndOfLine
  36.  TBEndOfLine
  37.  "A sample program to demonstrate network awareness."
  38.  TBEndOfLine
  39.  TBEndOfLine
  40.  "by"
  41.  TBEndOfLine
  42.  "Mark Day"
  43.  TBEndOfLine
  44.  TBEndOfLine
  45.  "Copyright Apple Computer, Inc."
  46.  TBEndOfLine
  47.  "All Rights Reserved"
  48.  TBEndOfLine
  49.  TBEndOfLine
  50.  "Last run: *0"                             /* *0 will substitute a string */
  51.  "@^#6\$00"                                 /* end text, default button:"Continue" */
  52. };
  53.  
  54.  
  55.  
  56. /*
  57.     Dialog box when unable to saveConfig.
  58. */
  59. resource rAlertString (2) {
  60.  "5"                                        /* a standard window size */
  61.  "4@"                                       /* caution icon, start text */
  62.  TBEndOfLine
  63.  "Error saving configuration"
  64.  "@^#0\$00"                                 /* default button: OK */
  65. };
  66.  
  67.  
  68. /*
  69.     Record used by StartUpTools to determine which tools to start up.
  70. */
  71. resource rToolStartup (1) {
  72.  mode640, /* master SCB */
  73.  { 
  74.         3,$0300,                        /* misc tools */
  75.         4,$0301,                        /* quickdraw */
  76.         5,$0302,                        /* desk manager */
  77.         6,$0300,                        /* eventMgr */
  78. /*      7,$0200,                        /* scheduler */
  79. /*      8,$0301,                        /* sound tools */
  80. /*      9,$0201,                        /* ADB tools */
  81. /*      10,$0202,                       /* SANE */
  82.         11,$0200,                       /* int math */
  83.         14,$0301,                       /* Window Manager */
  84.         15,$0301,                       /* Menu Manager */
  85.         16,$0301,                       /* Control Manager */
  86.         18,$0301,                       /* QD Aux */
  87.         19,$0300,                       /* print manager */
  88.         20,$0301,                       /* LineEdit tool set */
  89.         21,$0302,                       /* Dialog Manager */
  90.         22,$0300,                       /* Scrap manager */
  91.         23,$0301,                       /* standard file */
  92. /*      25,$0104,                       /* NoteSynth */
  93. /*      26,$0104,                       /* Note Seq */
  94.         27,$0301,                       /* Font manager */
  95.         28,$0301,                       /* list manager */
  96. /*      29,$0101,                       /* ACE */
  97. /*      32,$0103,                       /* Midi Tools */
  98.         34,$0101                        /* text edit */
  99.  }
  100. };
  101.  
  102.  
  103.  
  104. /*
  105.     Menu definitions
  106. */
  107. #define AppleMenuID $901
  108. #define FileMenuID $902
  109. #define EditMenuID $903
  110.  
  111. #define UndoID 250
  112. #define CutID 251
  113. #define CopyID 252
  114. #define PasteID 253
  115. #define ClearID 254
  116. #define CloseID 255
  117. #define AboutID 301
  118. #define QuitID 302
  119. #define LoadConfigID 303
  120. #define SaveConfigID 304
  121. #define DividerID 399                       /* dimmed dividing line */
  122.  
  123.  
  124.  
  125. /*
  126.     Define the menus in the system menu bar.
  127. */
  128. resource rMenuBar (1) {
  129.  {
  130.     AppleMenuID,
  131.     FileMenuID,
  132.     EditMenuID
  133.  };
  134. };
  135.  
  136. /*
  137.     Define the contents of the Apple menu.
  138. */
  139. resource rMenu (AppleMenuID) {
  140.  AppleMenuID,
  141.  0xA000 + rmAllowCache,
  142.  AppleMenuID,
  143.  {
  144.     AboutID,
  145.     DividerID
  146.     /* NDAs go here */
  147.  };
  148. };
  149.  
  150. /*
  151.     Define the File menu
  152. */
  153. resource rMenu (FileMenuID) {
  154.  FileMenuID,
  155.  0xA000 + rmAllowCache,
  156.  FileMenuID,
  157.  {
  158.     LoadConfigID,
  159.     SaveConfigID,
  160.     CloseID,
  161.     DividerID,
  162.     QuitID 
  163.  };
  164. };
  165.  
  166. /*
  167.     Define the Edit menu
  168. */
  169. resource rMenu (EditMenuID) {
  170.  EditMenuID,
  171.  0xA000 + rmDisabled+rmAllowCache,
  172.  EditMenuID,
  173.  { 
  174.     UndoID,
  175.     DividerID,
  176.     CutID,
  177.     CopyID,
  178.     PasteID,
  179.     ClearID
  180.  };
  181. };
  182.  
  183. /*
  184.     Define the dimmed divider item used in all the menus
  185. */
  186. resource rMenuItem (DividerID) {
  187.  DividerID,
  188.  "","",
  189.  0,
  190.  RefIsResource*ItemTitleRefShift+rMIDisabled,
  191.  DividerID
  192. };
  193.  
  194. /*
  195.     Undo menu item
  196. */
  197. resource rMenuItem (UndoID) {
  198.  UndoID,
  199.  "Z","z",
  200.  0,
  201.  RefIsResource*ItemTitleRefShift,
  202.  UndoID
  203. };
  204.  
  205. /*
  206.     Cut menu item
  207. */
  208. resource rMenuItem (CutID) {
  209.  CutID,
  210.  "X","x",
  211.  0,
  212.  RefIsResource*ItemTitleRefShift,
  213.  CutID
  214. };
  215.  
  216. /*
  217.     Copy menu item
  218. */
  219. resource rMenuItem (CopyID) {
  220.  CopyID,
  221.  "C","c",
  222.  0,
  223.  RefIsResource*ItemTitleRefShift,
  224.  CopyID
  225. };
  226.  
  227. /*
  228.     Paste menu item
  229. */
  230. resource rMenuItem (PasteID) {
  231.  PasteID,
  232.  "V","v",
  233.  0,
  234.  RefIsResource*ItemTitleRefShift,
  235.  PasteID
  236. };
  237.  
  238. /*
  239.     Clear menu item
  240. */
  241. resource rMenuItem (ClearID) {
  242.  ClearID,
  243.  "","",
  244.  0,
  245.  RefIsResource*ItemTitleRefShift,
  246.  ClearID
  247. };
  248.  
  249. /*
  250.     Close menu item
  251. */
  252. resource rMenuItem (CloseID) {
  253.  CloseID,
  254.  "","",
  255.  0,
  256.  RefIsResource*ItemTitleRefShift,
  257.  CloseID
  258. };
  259.  
  260. /*
  261.     "About Aware..." menu item
  262. */
  263. resource rMenuItem (AboutID) {
  264.  AboutID,
  265.  "","",
  266.  0,
  267.  RefIsResource*ItemTitleRefShift,
  268.  AboutID
  269. };
  270.  
  271. /*
  272.     Quit menu item
  273. */
  274. resource rMenuItem (QuitID) {
  275.  QuitID,
  276.  "Q","q",
  277.  0,
  278.  RefIsResource*ItemTitleRefShift,
  279.  QuitID
  280. };
  281.  
  282. /*
  283.     "Load Configuration" menu item
  284. */
  285. resource rMenuItem (LoadConfigID) {
  286.  LoadConfigID,
  287.  "L","l",
  288.  0,
  289.  RefIsResource*ItemTitleRefShift,
  290.  LoadConfigID
  291. };
  292.  
  293. /*
  294.     "Save Configuration" menu item
  295. */
  296. resource rMenuItem (SaveConfigID) {
  297.  SaveConfigID,
  298.  "S","s",
  299.  0,
  300.  RefIsResource*ItemTitleRefShift,
  301.  SaveConfigID
  302. };
  303.  
  304. /*
  305.     Strings for menu titles and menu items
  306. */
  307. resource rPString (AppleMenuID) {
  308.  "@"
  309.  };
  310. resource rPString (FileMenuID) {
  311.  "  File  "
  312.  };
  313. resource rPString (EditMenuID) {
  314.  "  Edit  "
  315.  };
  316.  
  317. resource rPString (DividerID) {
  318.  "-"
  319.  };
  320. resource rPString (AboutID) {
  321.  "About Aware..."
  322.  };
  323. resource rPString (QuitID) {
  324.  "Quit"
  325.  };
  326. resource rPString (LoadConfigID) {
  327.  "Load Configuration"
  328.  };
  329. resource rPString (SaveConfigID) {
  330.  "Save Configuration"
  331.  };
  332. resource rPString (UndoID) {
  333.  "Undo"
  334.  };
  335. resource rPString (CutID) {
  336.  "Cut"
  337.  };
  338. resource rPString (CopyID) {
  339.  "Copy"
  340.  };
  341. resource rPString (PasteID) {
  342.  "Paste"
  343.  };
  344. resource rPString (ClearID) {
  345.  "Clear"
  346.  };
  347. resource rPString (CloseID) {
  348.  "Close"
  349.  };
  350.